<gm:page title="Delicious" authenticate="false" onload="init()">
  
  
  <script>
  function init() {
    document.getElementById('gm-signin').style.display = 'none';
    var par_username = gup('up_username');
    var par_tag = gup('up_tag');
    if (par_username != "" && par_tag != "") {
      var rss_url = 'http://pipes.yahoo.com/pipes/pipe.run?_id=Jkd1qlCn3RG6ETfwPxJ3AQ&_render=rss&max=20&tag=' + par_tag + '&username=' + par_username;
      google.mashups.getObjectById('myList').setData(rss_url); 
    }
  }
  
  function gup( name )
  {
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
    var regexS = "[\\?&]"+name+"=([^&#]*)";
    var regex = new RegExp( regexS );
    var results = regex.exec( window.location.href );
    if( results == null )
      return "";
    else
      return results[1];
  }
  </script>
    
  <style>
    .delicious-link { font-size: 12px; }
  </style>
  
  <gm:list id="myList" template="myListTemplate"
      data="http://pipes.yahoo.com/pipes/pipe.run?_id=Jkd1qlCn3RG6ETfwPxJ3AQ&_render=rss&max=20&tag=gadget&username=veerleverbr" pagesize="20"/>

  <gm:template id="myListTemplate">
    <table>
        <tr repeat="true">
          <td style="padding:0px">
            <gm:link ref="atom:link/@href" labelref="atom:title" class="delicious-link" />
          </td>
        </tr>
    </table>
  </gm:template>

</gm:page>
